import request from '@/utils/request'

export function getInfraredSocketMacByUserName(data) {
    return request({
        url: '/alm/infrared/getInfraredSocketMacByUserName',
        method: 'get',
        data: data
    })
}

export function getInfraredSocketLastTimeStatus(data) {
    return request({
        url: '/alm/infrared/getInfraredSocketLastTimeStatus',
        method: 'post',
        data: data
    })
}

export function insertOrUpdateRecord(data) {
    return request({
        url: '/alm/infrared/insertOrUpdateRecord',
        method: 'post',
        data: data
    })
}

export function sendInfraredInstruction(data) {
    return request({
        url: '/alm/infrared/sendInfraredInstruction',
        method: 'post',
        data: data
    })
}

export function listInfraredSocket(data) {
    return request({
        url: '/alm/infrared/listInfraredSocket',
        method: 'get',
        data: data
    })
}

export function getModel(data) {
    return request({
        url: '/alm/infrared/getModel',
        method: 'get',
        data: data
    })
}